package com.zzxz.practicaltrainingsys.service;

import com.zzxz.practicaltrainingsys.entity.Circle;
import com.zzxz.practicaltrainingsys.entity.Circlecomment;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface CircleService {
    List<Circle> getCircleList(String sort);
    Circle getCircleDetail(Integer circleId);
    Integer createCircle(Circle circle, List<MultipartFile> files);
    Integer addComment(Circlecomment comment);
    List<Circlecomment> getCommentsWithReply(Integer circleId);
    int likeCircle(String circle_good, Integer circle_id);
    List<Circle> getCircleByRoleAndId(Integer circlestu_id, String circle_role, String sort);

    void updateCircle(Circle circle, List<MultipartFile> files);
    void deleteCircle(Integer circleId);

    // 获取点赞用户
    List<Map<String, String>> getLikedUsers(String userIds);

    // 删除评论及其子评论
    void deleteComment(Integer commentId);
}